<template>
	<view class="container">
		<!-- <releaseIdle v-if="navCurrent == 0" :pageParams="pageParams"></releaseIdle> -->
		<releasePurchaseRequest v-if="navCurrent == 1" :pageParams="pageParams"></releasePurchaseRequest>
	</view>
</template>

<script>
	import releasePurchaseRequest from '../../components/releasePurchaseRequest.vue';
	export default {
		components: {
			releasePurchaseRequest
		},
		data() {
			return {
				// 页面参数
				pageParams: {},
				// 导航
				navCurrent: 0
			}
		},
		onLoad(options) {
			this.navCurrent = options.type
			this.pageParams = options;
		},
		methods: {
			// 导航切换
			navChange(e) {
				this.navCurrent = e.index;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		padding-bottom: 30rpx;
	}
</style>
